package cn.zyq.ykb.beans.tk;

import cn.zyq.ykb.system.common.BaseBean;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.persistence.*;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;
import java.util.List;

/**
 * 菜单对象 menu
 *
 * @author SystemAuth
 * @date 2023-10-20
 */
@Data
@Entity
@Table(name = "`menu`")
public class Menu  extends BaseBean implements Serializable {
    /**
     * 主键id，用于关联
     */
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY, generator = "JDBC")
    @Column(name = "`menuID`")
    @ApiModelProperty("主键id，用于关联")
    private Integer menuID;
    /**
     * 发布人
     */
    @Column(name = "`tUserID`")
    @ApiModelProperty("发布人")
    private Integer tUserID;
    /**
     * 菜名
     */
    @Column(name = "`menuName`")
    @ApiModelProperty("菜名")
    private String menuName;
    /**
     * 菜品难度
     */
    @Column(name = "`difficulty`")
    @ApiModelProperty("菜品难度")
    private Integer difficulty;
    /**
     * 菜品时间（分钟）
     */
    @Column(name = "`menuTime`")
    @ApiModelProperty("菜品时间（分钟）")
    private Integer menuTime;
    /**
     * 菜品分类（1.早餐，2午餐，3晚餐）
     */
    @Column(name = "`menuType`")
    @ApiModelProperty("菜品分类（1.早餐，2午餐，3晚餐）")
    private Integer menuType;
    /**
     * 食材图片
     */
    @Column(name = "`picture`")
    @ApiModelProperty("食材图片")
    private String picture;
    /**
     * 菜品制作过程
     */
    @Column(name = "`step`")
    @ApiModelProperty("菜品制作过程")
    private String step;

    @Transient
    private List<MenuFood> menuFood;

    @Transient
    private MenuCollect menuCollect;

    @Transient
    private boolean Collect = false;
}
